package main

import (
	"github.com/gin-gonic/gin"
	"github.com/micro/go-micro/web"
)

func main()  {
	//consulReg := consul.NewRegistry(
	//	registry.Addrs("127.0.0.1:8500"),
	//)
	ginRouter := gin.Default()
	ginRouter.Handle("GET","/", func(context *gin.Context) {
		data := make([]interface{},0)
		context.JSON(200,gin.H{
			"data":data,
		})
	})

	server := web.NewService(
		//web.Name("prodservice"),
		web.Address(":8000"),
		web.Handler(ginRouter),
		//web.Registry(consulReg),
	)
	server.Run()
}
